package com.ruoyi.edu.domain.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程业务对象 edu_course
 *
 * @author ruoyi
 * @date 2022-08-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EduCourseBo extends BaseEntity {

    @TableField(exist = false)
    private String description;

    /**
     * 课程ID
     */
    @NotBlank(message = "课程ID不能为空", groups = { EditGroup.class })
    private String id;
    private List<Long> ids;
    /**
     * 课程讲师ID
     */
    @NotBlank(message = "课程讲师ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String teacherId;

    /**
     * 课程专业ID
     */
    @NotBlank(message = "课程专业ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subjectId;

    /**
     * 课程专业父级ID
     */
    @NotBlank(message = "课程专业父级ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subjectParentId;

    /**
     * 课程标题
     */
    @NotBlank(message = "课程标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 课程销售价格，设置为0则可免费观看
     */
    @NotNull(message = "课程销售价格，设置为0则可免费观看不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 总课时
     */
    @NotBlank(message = "总课时不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lessonNum;

    /**
     * 课程封面图片路径
     */
    @NotBlank(message = "课程封面图片路径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cover;

    /**
     * 销售数量
     */
    @NotBlank(message = "销售数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private String buyCount;

    /**
     * 课程状态 Draft未发布  Normal已发布
     */
    @NotBlank(message = "课程状态 Draft未发布  Normal已发布不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
